﻿@model FortuneArterial.Site.Model.Site.PageInfo
@{
    ViewBag.Title = "Create";
}

<form class="form-horizontal" method="POST" action="/Manage/Page/Edit">

    <fieldset>
        <legend>页面信息</legend>
        <div class="form-group">
            <label class="col-md-2 control-label" for="txtIcon">图标</label>
            <div class="col-md-10">
                <input class="form-control" placeholder="Page Icon" type="text" 
                       id="txtIcon" name="Icon" value="@Model.Icon">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="txtName">页面名称</label>
            <div class="col-md-10">
                <input class="form-control" placeholder="Page Name" type="text" 
                       id="txtName" name="Name" value="@Model.Name">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="txtPath">页面地址</label>
            <div class="col-md-10">
                <input class="form-control" placeholder="Page Path" type="text" 
                       id="txtPath" name="Path" value="@Model.Path">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="txtOrderNum">排序</label>
            <div class="col-md-10">
                <input class="form-control" placeholder="Page OrderNum" type="text" 
                       id="txtOrderNum" name="OrderNum" value="@Model.OrderNum">
            </div>
        </div>
    </fieldset>

    <div class="form-actions">
        <div class="row">
            <div class="col-md-12">
                <input type="hidden" name="ID" value="@Model.ID" />
                <input type="hidden" name="ParentID" value="@Model.ParentID" />
                <a class="btn btn-link" href="/manage/site/index">Cancel</a>
                <button class="btn btn-primary" type="submit">
                    <i class="fa fa-save"></i>
                    Submit
                </button>
            </div>
        </div>
    </div>
</form>

<script type="text/javascript">

    // DO NOT REMOVE : GLOBAL FUNCTIONS!
    pageSetUp();

    loadScript('/Assets/SmartAdmin/js/link4ajax.js', function() {
        link4ajax('.form-actions');
    });

</script>